package spring.gateWay;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import camila.gateway.filters.factory.TokenFilterGatewayFilterFactory;



@Configuration
@RestController
public class RootConfiguration {
	
	@Bean
	public TokenFilterGatewayFilterFactory tokenFilter() {
		return new TokenFilterGatewayFilterFactory();
	}
	@RequestMapping("/fallback")
	public String fallbackTest() {
		return "this is a fallback test in spring gateway";
	}
}
